using MauiApp.ViewModels;
using MauiApp.Models;
using System;
using Microsoft.Maui.Controls;

namespace MauiApp.Views
{
    public partial class TypeManagePage : ContentPage
    {
        private TypeManageViewModel viewModel;

        public TypeManagePage()
        {
            InitializeComponent();
            viewModel = BindingContext as TypeManageViewModel;
        }

        protected override async void OnAppearing()
        {
            base.OnAppearing();
            if (viewModel != null)
            {
                await viewModel.InitializeAsync();
            }
        }


    }
}